package com.jsits.v2x.modbus.schedule;

import com.jsits.v2x.modbus.service.ModebusService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;

@Slf4j
public class SpikeUpdateTask {
    @Autowired
    private ModebusService spikeDisplayService;

    @Scheduled(fixedRate = 1000)
    public void updateLedScreen() {
        log.info("更新道钉任务开始...");
        spikeDisplayService.updateLedScreen();
        log.info("更新道钉任务结束...");
    }
}
